<template>
	<view class="list-comment">
		<view class="list" v-for="(item, index) in list" :key="index">
			<view class="clearfix title">
				<image :src="item.userPortrait||'/static/images/home.png'" class="fl" mode="aspectFill"></image>
				<view class="name fl">
					<view>{{item.userName}}</view>
					<uni-rate active-color="#FCC800" max="5" is-fill="false" size="10" disabled="true" value="3.5"></uni-rate>
				</view>
			</view>
			<view class="time">{{item.commentDatetime}} 发表</view>
			<view class="cont">{{item.comments}}</view>
			<view class="photo">
				<image v-for="(item, index) in item.imageList" :key="index+'components1'" :src="item.imageUrl" mode="aspectFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	import uniRate from '@/components/uni-rate/uni-rate.vue'
	export default {
		components: {
			uniRate
		},
		data() {
			return {
				
			}
		},
		props: {
			list: {
				// 数据列表
				type: Array,
				default() {
					return [];
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.list{
	overflow:hidden
}
.list .title{
	margin-top: 30rpx;
	min-height: 100rpx;
	width: 100%;
	font-size: 28rpx;
	color: #333;
	letter-spacing: 0.7rpx;
	line-height: 40rpx;
}
.list .title image{
	width: 92rpx;
	height: 92rpx;
	border-radius: 100%;
	margin-right: 18rpx;
}
.list .title .name{
	margin-top: 14rpx;
}
.list .title .name view{
	margin-bottom: 8rpx;
}
.list .time{
	color: #999;
	font-size: 22rpx;
	letter-spacing: 0.55rpx;
	line-height: 30rpx;
	margin-bottom: 10rpx;
}
.list .cont{
	color: #333;
	font-size: 24rpx;
	letter-spacing: 0.6rpx;
	line-height: 33rpx;
	margin-bottom: 30rpx;
}
.list .photo{
	display: flex;
	flex-wrap: nowrap;
	/* justify-content: space-between; */
	padding-bottom: 30rpx;
	border-bottom: 1rpx solid #D8D8D8;
}
.list .photo image{
	width: 218rpx;
	height: 235rpx;
}
</style>
